<?php

class PhlameModule extends AbstractPhlame
{
    const MAPPER_ID = 'Module';
    /**
     * Parent Phlame
     * @var Owner
     */
    private $_Owner = NULL;
    
    public function setOwner(Phlame $Owner)
    {
        $this->_Owner = $Owner;
    }
    
    public function getOwner()
    {
        if (is_null($this->_Owner)) {
            throw new PhlameModuleException('Owner not set!');
        }
        return $this->_Owner;
    }
    
    protected function _cleanUp()
    {
        parent::_cleanUp();
        $this->_Owner = NULL;
    }
}

class PhlameModuleException extends PhlameException
{}